﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FuelDXApplication1.Entity.ReportingProcess
{
        /// <summary>
        /// 节点表
        /// </summary>
        [Table("RP_Node")]
        public class Node
        {
            public Node()
            {
                IsDelete = false;
            }

            [Key]
            public Guid Id { get; set; }

            /// <summary>
            /// 节点编号
            /// </summary>
            [MaxLength(11)]
            [Required]
            public string NodeSN { get; set; }

            /// <summary>
            /// 节点名称
            /// </summary>
            [MaxLength(50)]
            [Required]
            public string NodeName { get; set; }

            ///// <summary>
            ///// 流程id
            ///// </summary>
            //public Guid? FlowId { get; set; }

            //[MaxLength(100)]
            ///// <summary>
            ///// 流程名称
            ///// </summary>
            //public string FlowName { get; set; }

            /// <summary>
            /// 执行人Id
            /// </summary>
            public Guid? OperatorId { get; set; }

            /// <summary>
            ///执行人名称
            /// </summary>
            public string Operator { get; set; }

            /// <summary>
            /// 下一节点编号
            /// </summary>
            public string NextNodeSN { get; set; }

            /// <summary>
            /// 上一节点编号（退回节点）
            /// </summary>
            public string LastNodeSN { get; set; }



            public DateTime CreateTime { get; set; }

            /// <summary>
            /// 是否删除
            /// </summary>
            public bool IsDelete { get; set; }
        }
    
}
